package com.jubotech.business.web.service;

import com.jubotech.business.web.dao.FriendAddLogDao;
import com.jubotech.business.web.dao.WxFriendAddDao;
import com.jubotech.business.web.domain.FriendAddLog;
import com.jubotech.business.web.domain.FriendCountData;
import com.jubotech.business.web.domain.vo.WxFriendaddVo;
import com.jubotech.business.web.query.FriendAddLogQuery;
import com.jubotech.business.web.query.FriendAddStatQuery;
import com.jubotech.framework.common.ResultInfo;
import com.jubotech.framework.util.DateUtil;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.Date;
import java.util.List;
import java.util.Map;

@Service
@Transactional // 支持事务
public class WxFriendAddService {

	@Resource
	private WxFriendAddDao wxFriendAddDao;


	public List<WxFriendaddVo> addStatistics(FriendAddStatQuery query) {
		return wxFriendAddDao.addStatistics(query);
	}

	public List<FriendAddLog> queryFriendAddLog(Date start, Date end) {
		return wxFriendAddDao.queryFriendAddLog(start, end);
	}


	public Date queryLast() {
		return wxFriendAddDao.queryLast();
	}
}
